<div id="tableGrid">
	<table id="knowledgeList">
		<tr>
			<th id="stt">STT</th>
			<th id="school">Trường</th>
			<th id="graduation">Tốt nghiệp</th>
			<th id="mode_study">Hình Thức</th>
			<th id="gradution_time" >Thời gian</th>
			<th id="operation">Thao tác</th>
		</tr>
		<?php
			$stt = 1; 
	  		foreach ($UserAcademyList as $item){
 		?>
		<tr>
			<td><?php echo $stt;?></td>
			<td><?php echo $item->userAcademyName->academy_name; ?></td>
			<td><?php echo $item->user_academy_graduation_degree; ?></td>
			<td><?php echo $item->user_academy_type_of_training; ?></td>
			<td>
				<?php 
					$date = $item->user_academy_end_time;
					$date = Html::formatDateTime($date, 'yyyy-MM-dd hh:mm:ss', 'm/Y');
					echo $date;
				?>
			</td>
			<td>
				<?php 
					$updateDiv = '#table-academy';
					echo CHtml::ajaxLink('<img  src="'.Html::imageUrl("action-delete.gif").'" alt="delete" title="xóa"></img>', $this->createUrl('del', array('uid'=>Yii::app()->request->getParam('uid'))),
						array(
							'type'=>'POST',
							'data'=>array('aid'=>$item->user_academy_id),
							'update'=>$updateDiv,
							'beforeSend'=>"function() {
								$('$updateDiv').addClass('loading');
							}",
							'complete'=>"function(){
								$('$updateDiv').removeClass('loading');
							}",
						),
						array(
							'id'=>'delRow'.uniqid(),
						)
					);
				?>
			</td>
		</tr>
		<?php
			$stt++; 
	  		}
		?>
	</table>
</div>